package cn.edu.ntu.yyl.fitter;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class AdminFitterConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new AdminFitter())
                .addPathPatterns("/admin/**")
                .excludePathPatterns("/admin","/admin/login","/admin/","/admin/login/","/admin/login.html");

    }
}
